package com.graduate.game.assignment.service;


import com.graduate.game.assignment.pojo.assignment;
import com.graduate.game.user.pojo.User;

import java.util.List;

public interface publishService {
    //发布悬赏
    public boolean insert(assignment assignment);

    //得到悬赏列表
    public List<assignment> getAll();

    //根据ID获取一条悬赏
    public assignment getOneByID(String id);

    //模糊查询悬赏
    public List<assignment> serchassignment(String title);

    //根据publisher查看
    public List<assignment> getallbypublisher(String publisher);

    //根据ID进行删除
    public boolean delById(long id);
}
